package cn.liccshop.core.service.shopCart.service;

import cn.liccshop.core.entity.ShopCart;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LiCC
 * @since 2019-04-30
 */
public interface IShopCartService extends IService<ShopCart> {
    /**
     * 获取购物车列表
     * @param userId
     * @return
     */
    List<Map<String, Object>> selectShopCartInfos(@Param("userId") String userId);
    /**
     * 获取要购买的商品的购物车信息
     * @param userId
     * @return
     */
    List<Map<String, Object>> getShopCartInfosAndOrderPro(String userId, List<String> ids);
}
